package com.coffee.admin.api.common.service;

import com.coffee.admin.api.common.query.AdminMenuQuery;
import com.coffee.admin.api.common.req.AdminMenuRequest;
import com.coffee.admin.api.common.result.AdminMenuResult;
import com.coffee.admin.api.common.result.CommonMenuResult;
import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface AdminMenuService {

	Page<AdminMenuResult> getPager(AdminMenuQuery param, PagerInfo pr);
	
	Integer count(AdminMenuQuery param);
	
	AdminMenuResult getDetail(Integer id);
	
	List<AdminMenuResult> getList(AdminMenuQuery param, PagerInfo pr);
	
	List<AdminMenuResult> getList(AdminMenuQuery param);
	
	List<AdminMenuResult> getList();

	void delete(Integer id);

	void addOrUpdate(AdminMenuResult result)throws BusinessException;
	
	Map<Integer,AdminMenuResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,AdminMenuResult> getItemMap();

	CommonMenuResult supplierList(AdminMenuRequest request) throws BusinessException;

	
}